{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "#51CTO课程频道：http://edu.51cto.com/lecturer/index/user_id-12330098.html\n",
    "#优酷频道：http://i.youku.com/sdxxqbf\n",
    "#微信公众号：深度学习与神经网络\n",
    "#Github：https://github.com/Qinbf"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "(1797, 64)\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "<matplotlib.figure.Figure at 0x1d63d7efa20>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAVgAAAFdCAYAAABGoXXzAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAAPYQAAD2EBqD+naQAAEX9JREFUeJzt3X+s3XV9x/Hnq1jlhyI34nBOmRaUaTAgt6DOAZtUMERR\nkllF4kIIM6AzxG2JEDFkizF1RiSgGLM5QVCX9g8jOhCobHMtsoYidQzQ6AVhDqotHRCqA+xnf5zT\neL32Ws/t993vPYfnI7l/3EP5nlf643m//Z7T701rDUlS95b0PUCSJpWBlaQiBlaSihhYSSpiYCWp\niIGVpCIGVpKKGFhJKmJgJamIgZWkImMT2CTvS3Jvkp8luTXJsX1vAkhyfJJrk/w4yY4kp/W9CSDJ\nhUk2JHk0yeYkX0ny8r53ASQ5N8mmJI8MP25J8qa+d82V5ILhr+kli2DLxcMtsz/u6nvXTklemOTq\nJFuSbB/++h6zCHbdu4uftx1JLt8bzz8WgU3yDuATwMXAq4FNwA1JDu512MABwB3Ae4HFdGOH44HL\ngdcAK4ClwI1J9ut11cADwAeBY4Bp4Gbgq0le0euqWYZfwN/D4PfaYnEncAjwguHHH/U7ZyDJQcB6\n4P+AU4BXAH8FbOtz19Byfvnz9QLgjQz+nK7eG0+ecbjZS5Jbgf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HasJ554otPj3XnnnZ0d69FHH+3s\neDMzM50cZ6ft27d3fkxNlN32La21smdP8i7gi2VPIEn9ObO19qXf9AOqA/s84BTgPuDnZU8kSXvP\nvsBLgBtaa1t/0w8sDawkPZ35IpckFTGwklTEwEpSEQMrSUUMrCQVMbCSVMTASlKR/wfmW6zHvgHd\n0QAAAABJRU5ErkJggg==\n",
      "text/plain": [
       "<matplotlib.figure.Figure at 0x1d63b07feb8>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "from sklearn.datasets import load_digits\n",
    "import pylab as pl\n",
    "\n",
    "digits = load_digits()#载入数据集\n",
    "print(digits.data.shape)\n",
    "\n",
    "pl.gray()#灰度化图片\n",
    "pl.matshow(digits.images[0])\n",
    "pl.show()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "anaconda-cloud": {},
  "kernelspec": {
   "display_name": "Python [default]",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.5.2"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 1
}
